package com.hbnu.system.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.hbnu.system.model.entity.Paper_Qualification;

import java.util.List;


public interface IPaperQualificationService extends IService<Paper_Qualification> {
    /**
     * 新增论文量化数据
     */
    boolean addPaper_Qualification(Paper_Qualification paper_qualification);

    /**
     * 删除论文量化数据
     */
    boolean deletePaper_Qualification(String PaperQuantificationID);

    /**
     * 单个查论文量化数据
     */
    List<Paper_Qualification> getOnePaper_Qualification(String PaperID);

    /**
     * 修改论文分数
     * @param paper_qualification
     * @return
     */
    boolean upPaperScore(Paper_Qualification paper_qualification);

    /**
     * 批量同步量化分数到论文表
     * 将所有已有量化数据的论文分数同步到paper表
     * @return 同步成功的记录数
     */
    int syncAllPaperScores();
}
